export interface Algorithm {
  id: number
  userId: string
  title: string
  description: string
  difficulty: 'easy' | 'medium' | 'hard'
  imageUrl?: string
  createdAt: Date
  updatedAt: Date
}

export interface AlgorithmSolution {
  id: string
  problemId: number
  code: string
  language?: string
  notes?: string
  savedAt: Date
}

export interface CreateAlgorithmRequest {
  title: string
  description: string
  difficulty: 'easy' | 'medium' | 'hard'
  imageUrl?: string
}

export interface UpdateAlgorithmRequest {
  title?: string
  description?: string
  difficulty?: 'easy' | 'medium' | 'hard'
  imageUrl?: string
}

export interface SaveCodeRequest {
  code: string
}

export type AlgorithmDifficulty = 'easy' | 'medium' | 'hard'